package com.runvp.common.enums;


/**
 * 支付渠道(polymerization:集合支付,wechat:微信支付,alipay:阿里支付)
 * @author xukk_dp
 */

public enum PayChannel implements BaseEnumInterface {

    PLAT("plat", "平台操作"),
    PAY_SCORE("score", "积分支付"),
    PAY_NATIVE("native", "原生支付"),
    PAY_QR("qrCode", "二维码支付"),
    PAY_CLOUD_CARD("cloudCard", "云卡支付"),
    PAY_POLYMERIZATION("polymerization", "集合支付"),
    PAY_WECHAT("wechat", "微信支付"),
    PAY_ALIPAY("alipay", "阿里支付");


    private final String code;
    private final String desc;
    private String defaulted;

    @Override
    public String getDefaulted() {
        return defaulted;
    }


    PayChannel(String code, String desc, String defaulted) {
        this.code = code;
        this.desc = desc;
        this.defaulted = defaulted;
    }


    PayChannel(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }


    @Override
    public String getCode() {
        return code;
    }
    @Override
    public String getDesc() {
        return desc;
    }
}
